package com.juzi.operator;

public class OperatorDemo3 {
    public static void main(String[] args) {
        //目标：“+”符号做连接符的识别
        System.out.println("“+”符号做连接符的识别\n" +
                "能算则算，不能算就在一起。（计算机很聪明）\n");
        int a = 5 ;
        System.out.println("abc" + 'a');
        System.out.println("abc" + a);
        System.out.println(5 + a);
        System.out.println("abc" + 5 + 'a');
        System.out.println(15 + "abc" + 15);
        System.out.println(a + 'a');
        System.out.println(a + "" +'a');
        System.out.println(a + 'a'+"juzi");
        System.out.println("juzi"+ a + 'a');
        System.out.println("juzi"+ ( a + 'a' ));

    }
}
